package com.xinghou.platform.file.chain;

import org.apache.commons.chain.Context;
import org.apache.commons.chain.Filter;

/**
 * 
 * @author wxtdy
 *
 */
public class AuthenticationFilter implements Filter {
	
	public boolean execute(Context context) throws Exception{

		
		System.out.println("---------------------filter--------------------------");

		return false;
	}
	
	 public boolean postprocess(Context context, Exception e) {
		 System.out.println("---------------------postprocess--------------------------");
        //返回true，表示非空异常已被处理，无需再抛出。
        if( null!= e) 
        	return true;
        else 
        	return false;
	 }

}
